﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace WarningForeverClone.src.particles
{
    public class Particle
    {
        public Vector2 pos;
        public Vector2 velocity;
        public int aliveCount;
        public int count;
        public bool alive;
        public int type;
        public double rotation;
        public double rotationSpeed;


        public void Update()
        {
            count++;
            pos += velocity;
            rotation += rotationSpeed;
            if (count > aliveCount)
                alive = false;
        }


        public void Reset()
        {
            count = 0;
            alive = true;
        }
    }
}
